package com.bzkj.basicinfo.domain.fieldTranslation;

import com.bzkj.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.bzkj.common.annotation.Excel;

/**
 * 字段翻译映射对象 field_translation
 * 
 * @author bzkj
 * @date 2025-03-21
 */
public class FieldTranslation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 表名 */
    private String tableName;

    /** 字段名 */
    private String fieldName;

    /** 中文名 */
    @Excel(name = "中文名")
    private String fieldCnName;

    /** 历史中文名 */
    @Excel(name = "历史中文名")
    private String oldCnName;

    /** 翻译 */
    @Excel(name = "翻译")
    private Long isTranslated;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTableName(String tableName) 
    {
        this.tableName = tableName;
    }

    public String getTableName() 
    {
        return tableName;
    }
    public void setFieldName(String fieldName) 
    {
        this.fieldName = fieldName;
    }

    public String getFieldName() 
    {
        return fieldName;
    }
    public void setFieldCnName(String fieldCnName) 
    {
        this.fieldCnName = fieldCnName;
    }

    public String getFieldCnName() 
    {
        return fieldCnName;
    }
    public void setOldCnName(String oldCnName) 
    {
        this.oldCnName = oldCnName;
    }

    public String getOldCnName() 
    {
        return oldCnName;
    }
    public void setIsTranslated(Long isTranslated) 
    {
        this.isTranslated = isTranslated;
    }

    public Long getIsTranslated() 
    {
        return isTranslated;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tableName", getTableName())
            .append("fieldName", getFieldName())
            .append("fieldCnName", getFieldCnName())
            .append("oldCnName", getOldCnName())
            .append("isTranslated", getIsTranslated())
            .toString();
    }
}
